package com.heima.search.service;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.search.HistorySearchDto;
import com.heima.model.search.UserSearchDto;

public interface ApUserSearchService {

    /**
     * 保存用户搜索历史记录
     * @param userSearchDto
     */
    public void insert( UserSearchDto userSearchDto);

    /**
     查询搜索历史
     @param userSearchDto
     @return
     */
    ResponseResult findUserSearch(UserSearchDto userSearchDto);
    /**
     * 删除搜索历史
     * @param userSearchDto
     * @return
     */
    public ResponseResult delUserSearch(HistorySearchDto dto) ;
}